Micron Document
🎖️GitЯра🎖️

Node / meshtastic / Meshtastic-Android / files / feature / node / src / commonMain / kotlin / org / meshtastic / feature / node / metrics / PositionLogComponents.kt

Displaying Raw • Download

feature/node/src/commonMain/kotlin/org/meshtastic/feature/node/metrics/PositionLogComponents.kt 520fa717a938fd84682403b41f57d9f7e1ef49ef (520fa717) Text, 4.66 KB

T8b949e/*
* Copyright (c) 2025-2026 Meshtastic LLC
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
Tff7b72package T7ee787org.meshtastic.feature.node.metrics

Tff7b72import T7ee787androidx.compose.foundation.layout.Arrangement
Tff7b72import T7ee787androidx.compose.foundation.layout.ColumnScope
Tff7b72import T7ee787androidx.compose.foundation.layout.Row
Tff7b72import T7ee787androidx.compose.foundation.layout.RowScope
Tff7b72import T7ee787androidx.compose.foundation.layout.fillMaxWidth
Tff7b72import T7ee787androidx.compose.foundation.layout.padding
Tff7b72import T7ee787androidx.compose.foundation.lazy.LazyColumn
Tff7b72import T7ee787androidx.compose.foundation.lazy.items
Tff7b72import T7ee787androidx.compose.material3.Text
Tff7b72import T7ee787androidx.compose.runtime.Composable
Tff7b72import T7ee787androidx.compose.ui.Alignment
Tff7b72import T7ee787androidx.compose.ui.Modifier
Tff7b72import T7ee787androidx.compose.ui.text.style.TextAlign
Tff7b72import T7ee787androidx.compose.ui.text.style.TextOverflow
Tff7b72import T7ee787androidx.compose.ui.unit.dp
Tff7b72import T7ee787org.jetbrains.compose.resources.stringResource
Tff7b72import T7ee787org.meshtastic.core.common.util.formatString
Tff7b72import T7ee787org.meshtastic.core.model.util.GeoConstants.DEG_D
Tff7b72import T7ee787org.meshtastic.core.model.util.GeoConstants.HEADING_DEG
Tff7b72import T7ee787org.meshtastic.core.model.util.metersIn
Tff7b72import T7ee787org.meshtastic.core.model.util.toString
Tff7b72import T7ee787org.meshtastic.core.resources.Res
Tff7b72import T7ee787org.meshtastic.core.resources.alt
Tff7b72import T7ee787org.meshtastic.core.resources.heading
Tff7b72import T7ee787org.meshtastic.core.resources.latitude
Tff7b72import T7ee787org.meshtastic.core.resources.longitude
Tff7b72import T7ee787org.meshtastic.core.resources.sats
Tff7b72import T7ee787org.meshtastic.core.resources.speed
Tff7b72import T7ee787org.meshtastic.core.resources.speed_kmh
Tff7b72import T7ee787org.meshtastic.core.resources.timestamp
Tff7b72import T7ee787org.meshtastic.core.ui.util.formatPositionTime
Tff7b72import T7ee787org.meshtastic.proto.Config
Tff7b72import T7ee787org.meshtastic.proto.Position

Tf0883e@Composable
Tff7b72private Tff7b72fun Te6edf3RowScopeTb4b4b4.Td2a8ffPositionTextTb4b4b4(Te6edf3textTb4b4b4: Tffa657StringTb4b4b4, Te6edf3weightTb4b4b4: Tffa657FloatTb4b4b4) Tb4b4b4{
Te6edf3TextTb4b4b4(
Te6edf3text Tff7b72= Te6edf3textTb4b4b4,
Te6edf3modifier Tff7b72= Te6edf3ModifierTb4b4b4.Te6edf3weightTb4b4b4(Te6edf3weightTb4b4b4)Tb4b4b4,
Te6edf3textAlign Tff7b72= Te6edf3TextAlignTb4b4b4.Te6edf3CenterTb4b4b4,
Te6edf3overflow Tff7b72= Te6edf3TextOverflowTb4b4b4.Te6edf3EllipsisTb4b4b4,
Te6edf3maxLines Tff7b72= T79c0ff1Tb4b4b4,
Tb4b4b4)
Tb4b4b4}

Tff7b72private Tff7b72const Tff7b72val Te6edf3WEIGHT_10 Tff7b72= Tb4b4b4.T79c0ff1T79c0ff0f
Tff7b72private Tff7b72const Tff7b72val Te6edf3WEIGHT_15 Tff7b72= Tb4b4b4.T79c0ff1T79c0ff5f
Tff7b72private Tff7b72const Tff7b72val Te6edf3WEIGHT_20 Tff7b72= Tb4b4b4.T79c0ff2T79c0ff0f
Tff7b72private Tff7b72const Tff7b72val Te6edf3WEIGHT_40 Tff7b72= Tb4b4b4.T79c0ff4T79c0ff0f

Tf0883e@Composable
Tff7b72fun Td2a8ffPositionLogHeaderTb4b4b4(Te6edf3compactWidthTb4b4b4: Tffa657BooleanTb4b4b4) Tb4b4b4{
Te6edf3RowTb4b4b4(Te6edf3modifier Tff7b72= Te6edf3ModifierTb4b4b4.Te6edf3fillMaxWidthTb4b4b4(Tb4b4b4)Tb4b4b4.Te6edf3paddingTb4b4b4(T79c0ff8.Te6edf3dpTb4b4b4)Tb4b4b4, Te6edf3horizontalArrangement Tff7b72= Te6edf3ArrangementTb4b4b4.Te6edf3SpaceBetweenTb4b4b4) Tb4b4b4{
Te6edf3PositionTextTb4b4b4(Te6edf3stringResourceTb4b4b4(Te6edf3ResTb4b4b4.Te6edf3stringTb4b4b4.Te6edf3latitudeTb4b4b4)Tb4b4b4, Te6edf3WEIGHT_20Tb4b4b4)
Te6edf3PositionTextTb4b4b4(Te6edf3stringResourceTb4b4b4(Te6edf3ResTb4b4b4.Te6edf3stringTb4b4b4.Te6edf3longitudeTb4b4b4)Tb4b4b4, Te6edf3WEIGHT_20Tb4b4b4)
Te6edf3PositionTextTb4b4b4(Te6edf3stringResourceTb4b4b4(Te6edf3ResTb4b4b4.Te6edf3stringTb4b4b4.Te6edf3satsTb4b4b4)Tb4b4b4, Te6edf3WEIGHT_10Tb4b4b4)
Te6edf3PositionTextTb4b4b4(Te6edf3stringResourceTb4b4b4(Te6edf3ResTb4b4b4.Te6edf3stringTb4b4b4.Te6edf3altTb4b4b4)Tb4b4b4, Te6edf3WEIGHT_15Tb4b4b4)
Tff7b72if Tb4b4b4(Tff7b72!Te6edf3compactWidthTb4b4b4) Tb4b4b4{
Te6edf3PositionTextTb4b4b4(Te6edf3stringResourceTb4b4b4(Te6edf3ResTb4b4b4.Te6edf3stringTb4b4b4.Te6edf3speedTb4b4b4)Tb4b4b4, Te6edf3WEIGHT_15Tb4b4b4)
Te6edf3PositionTextTb4b4b4(Te6edf3stringResourceTb4b4b4(Te6edf3ResTb4b4b4.Te6edf3stringTb4b4b4.Te6edf3headingTb4b4b4)Tb4b4b4, Te6edf3WEIGHT_15Tb4b4b4)
Tb4b4b4}
Te6edf3PositionTextTb4b4b4(Te6edf3stringResourceTb4b4b4(Te6edf3ResTb4b4b4.Te6edf3stringTb4b4b4.Te6edf3timestampTb4b4b4)Tb4b4b4, Te6edf3WEIGHT_40Tb4b4b4)
Tb4b4b4}
Tb4b4b4}

Tf0883e@Composable
Tff7b72fun Td2a8ffPositionItemTb4b4b4(Te6edf3compactWidthTb4b4b4: Tffa657BooleanTb4b4b4, Te6edf3positionTb4b4b4: Te6edf3PositionTb4b4b4, Te6edf3systemTb4b4b4: Te6edf3ConfigTb4b4b4.Te6edf3DisplayConfigTb4b4b4.Te6edf3DisplayUnitsTb4b4b4) Tb4b4b4{
Te6edf3RowTb4b4b4(
Te6edf3modifier Tff7b72= Te6edf3ModifierTb4b4b4.Te6edf3fillMaxWidthTb4b4b4(Tb4b4b4)Tb4b4b4.Te6edf3paddingTb4b4b4(Te6edf3horizontal Tff7b72= T79c0ff8.Te6edf3dpTb4b4b4)Tb4b4b4,
Te6edf3horizontalArrangement Tff7b72= Te6edf3ArrangementTb4b4b4.Te6edf3SpaceBetweenTb4b4b4,
Tb4b4b4) Tb4b4b4{
Te6edf3PositionTextTb4b4b4(Te6edf3formatStringTb4b4b4(Ta5d6ff"Ta5d6ff%.5fTa5d6ff"Tb4b4b4, Tb4b4b4(Te6edf3positionTb4b4b4.Te6edf3latitude_i Tff7b72?: T79c0ff0Tb4b4b4) Tff7b72* Te6edf3DEG_DTb4b4b4)Tb4b4b4, Te6edf3WEIGHT_20Tb4b4b4)
Te6edf3PositionTextTb4b4b4(Te6edf3formatStringTb4b4b4(Ta5d6ff"Ta5d6ff%.5fTa5d6ff"Tb4b4b4, Tb4b4b4(Te6edf3positionTb4b4b4.Te6edf3longitude_i Tff7b72?: T79c0ff0Tb4b4b4) Tff7b72* Te6edf3DEG_DTb4b4b4)Tb4b4b4, Te6edf3WEIGHT_20Tb4b4b4)
Te6edf3PositionTextTb4b4b4(Te6edf3positionTb4b4b4.Te6edf3sats_in_viewTb4b4b4.Te6edf3toStringTb4b4b4(Tb4b4b4)Tb4b4b4, Te6edf3WEIGHT_10Tb4b4b4)
Te6edf3PositionTextTb4b4b4(Tb4b4b4(Te6edf3positionTb4b4b4.Te6edf3altitude Tff7b72?: T79c0ff0Tb4b4b4)Tb4b4b4.Te6edf3metersInTb4b4b4(Te6edf3systemTb4b4b4)Tb4b4b4.Te6edf3toStringTb4b4b4(Te6edf3systemTb4b4b4)Tb4b4b4, Te6edf3WEIGHT_15Tb4b4b4)
Tff7b72if Tb4b4b4(Tff7b72!Te6edf3compactWidthTb4b4b4) Tb4b4b4{
Te6edf3PositionTextTb4b4b4(Te6edf3stringResourceTb4b4b4(Te6edf3ResTb4b4b4.Te6edf3stringTb4b4b4.Te6edf3speed_kmhTb4b4b4, Te6edf3positionTb4b4b4.Te6edf3ground_speed Tff7b72?: T79c0ff0Tb4b4b4)Tb4b4b4, Te6edf3WEIGHT_15Tb4b4b4)
Te6edf3PositionTextTb4b4b4(Te6edf3formatStringTb4b4b4(Ta5d6ff"Ta5d6ff%.0f°Ta5d6ff"Tb4b4b4, Tb4b4b4(Te6edf3positionTb4b4b4.Te6edf3ground_track Tff7b72?: T79c0ff0Tb4b4b4) Tff7b72* Te6edf3HEADING_DEGTb4b4b4)Tb4b4b4, Te6edf3WEIGHT_15Tb4b4b4)
Tb4b4b4}
Te6edf3PositionTextTb4b4b4(Te6edf3positionTb4b4b4.Te6edf3formatPositionTimeTb4b4b4(Tb4b4b4)Tb4b4b4, Te6edf3WEIGHT_40Tb4b4b4)
Tb4b4b4}
Tb4b4b4}

Tf0883e@Composable
Tff7b72fun Te6edf3ColumnScopeTb4b4b4.Td2a8ffPositionListTb4b4b4(
Te6edf3compactWidthTb4b4b4: Tffa657BooleanTb4b4b4,
Te6edf3positionsTb4b4b4: Te6edf3ListTff7b72<Te6edf3PositionTff7b72>Tb4b4b4,
Te6edf3displayUnitsTb4b4b4: Te6edf3ConfigTb4b4b4.Te6edf3DisplayConfigTb4b4b4.Te6edf3DisplayUnitsTb4b4b4,
Tb4b4b4) Tb4b4b4{
Te6edf3LazyColumnTb4b4b4(Te6edf3modifier Tff7b72= Te6edf3ModifierTb4b4b4.Te6edf3weightTb4b4b4(T79c0ff1fTb4b4b4)Tb4b4b4, Te6edf3horizontalAlignment Tff7b72= Te6edf3AlignmentTb4b4b4.Te6edf3CenterHorizontallyTb4b4b4) Tb4b4b4{
Te6edf3itemsTb4b4b4(Te6edf3positionsTb4b4b4) Tb4b4b4{ Te6edf3position Tff7b72-Tff7b72> Te6edf3PositionItemTb4b4b4(Te6edf3compactWidthTb4b4b4, Te6edf3positionTb4b4b4, Te6edf3displayUnitsTb4b4b4) Tb4b4b4}
Tb4b4b4}
Tb4b4b4}

Served by rngit 1.5.0 - Generated in 0.06s